package com.insigma.yanwenlong.bookkeeping.service;

import java.sql.SQLException;
import java.util.List;

import com.insigma.yanwenlong.bookkeeping.dao.MemberDao;
import com.insigma.yanwenlong.bookkeeping.dao.MemberDaoImpl;
import com.insigma.yanwenlong.bookkeeping.pojo.Member;

public class MemberServiceImpl implements MemberService {
	private MemberDao memberDao = new MemberDaoImpl();
	@Override
	public List<Member> findallMembers() throws SQLException {
		return memberDao.findallMembers();
	}
	@Override
	public Member findMemberById(int id) throws SQLException {
		return memberDao.findMemberById(id);
	}
	@Override
	public int addMember(Member member) throws SQLException {
		return memberDao.addMember(member);
	}
	@Override
	public boolean deleteMemberById(int id) throws SQLException {
		return memberDao.deleteMemberById(id);
	}

}
